package xyz.riceball.springcloudstreambinderredis.common;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * MessageExt
 * </p>
 *
 * @author xiaovcloud
 * @since 2024/6/24 19:58
 */
public class MessageDTO<T> implements Serializable {

	private T payload;

	private Map<String,Object> headers = new HashMap<>();

	public T getPayload() {
		return payload;
	}

	public void setPayload(T payload) {
		this.payload = payload;
	}

	public Map<String, Object> getHeaders() {
		return headers;
	}

	public void setHeaders(Map<String, Object> headers) {
		this.headers = headers;
	}
}
